package com.hk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hk.domain.Clue;
import com.hk.domain.ClueData;
import com.hk.dto.ClueBusinContractDto;
import com.hk.vo.ClueBusinContractVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ClueMapper extends BaseMapper<Clue> {


    List<Integer> getTotalData(LocalDate beginTime, LocalDate endTime);

    List<Integer> getClueData(LocalDate beginTime, LocalDate endTime);

    Integer getClueCount(LocalDateTime end1);

    Integer getClueDatas(LocalDateTime begin1, LocalDateTime end1);

    IPage<ClueBusinContractVo> selectALL( @Param("page") Page<Clue> cluePage,  @Param("dto") ClueBusinContractDto clueBusinContractDto);

    Integer getClueCount2(LocalDateTime beginTime, LocalDateTime endTime);

    Integer getClueStatusCount(LocalDateTime beginTime, LocalDateTime endTime);
}
